<?php defined('IN_IA') or exit('Access Denied');?>        <form method="post" id="appForm" action="" onsubmit="return checkAppForm();" class="form-horizontal mt10" role="form">
            <div class="form-group">
                <div class="col-xs-12 col-sm-3 col-md-2 control-label" for="appname">APP名称:</div>
                <div class="col-sm-8 col-md-6">
                    <input type="text" class="form-control" name="appname" value="<?php  echo $app['appname'];?>" placeholder="请填写APP名称">
                    <div class="help-block"><span class="text-danger">* 必填，</span>默认为转发朋友及朋友圈时的标题名称</div>
                </div>
            </div>
            <div class="form-group">
                <div class="col-xs-12 col-sm-3 col-md-2 control-label" for="description">APP描述:</div>
                <div class="col-sm-8 col-md-6">
                    <textarea name="description" id="description" class="form-control" rows="2"><?php  echo $app['description'];?></textarea>
                    <div class="help-block"><span class="text-danger">* 必填，</span>默认为转发朋友及朋友圈时的内容描述</div>
                </div>
            </div>
            <div class="form-group imageSelect">
                <div class="col-xs-12 col-sm-3 col-md-2 control-label">APP图标:</div>
                <div class="col-sm-8 col-md-6"><?php  echo tpl_form_field_image('icon',$app['icon']);?></div>
            </div>
            <div class="form-group">
                <div class="col-xs-12 col-sm-3 col-md-2 control-label" for="musicurl">背景音乐:</div>
                <div class="col-sm-8 col-md-6"><?php  echo tpl_form_field_audio('musicurl', $app['musicurl'], array('extras' => array('text' => 'ng-model="item.musicurl"')));?> <span class="help-block">选择上传的音频文件或直接输入URL地址，常用格式：mp3</span>
 
                    <div class="help-block"><span class="text-danger font12">* 仅支持MP3格式.</span>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <div class="col-xs-12 col-sm-3 col-md-2 control-label" for="bgcolor">背景色:</div>
                <div class="col-sm-8 col-md-6"><?php  echo tpl_form_field_color('bgcolor',$app['bgcolor']);?></div>
            </div>
            <div class="form-group imageSelect">
                <div class="col-xs-12 col-sm-3 col-md-2 control-label">背景图:</div>
                <div class="col-sm-8 col-md-6"><?php  echo tpl_form_field_image('bgimage',$app['bgimage']);?></div>
            </div>
            <div class="form-group imageSelect">
                <div class="col-xs-12 col-sm-3 col-md-2 control-label">加载LOGO:</div>
                <div class="col-sm-8 col-md-6">
                    <div class="col-sm-8 col-md-6">
                    <?php  echo tpl_form_field_image('symbol',$app['symbol']);?>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <div class="col-xs-12 col-sm-3 col-md-2 control-label">加载效果:</div>
                <div class="col-sm-4">
                    <select name="loading" class="form-control" id="loading">
                        <option value="app-loading-1" <?php  if($app['loading']=='app-loading-1') { ?>selected<?php  } ?>>双球加载</option>
                        <option value="app-loading-2" <?php  if($app['loading']=='app-loading-2') { ?>selected<?php  } ?>>三点加载</option>
                        <option value="app-loading-3" <?php  if($app['loading']=='app-loading-3') { ?>selected<?php  } ?>>圆环加载</option>
                        <option value="app-loading-4" <?php  if($app['loading']=='app-loading-4') { ?>selected<?php  } ?>>进度条加载</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <div class="col-xs-12 col-sm-3 col-md-2 control-label">切换方式:</div>
                <div class="col-sm-8 col-md-6">
                    <label class="radio-inline">
                        <input name="slidemethod" type="radio" value="vertical" <?php  if($app['slidemethod']=='vertical') { ?>checked<?php  } ?>>纵向</label>
                    <label class="radio-inline">
                        <input type="radio" name="slidemethod" value="horizontal" <?php  if($app['slidemethod']=='horizontal') { ?>checked<?php  } ?>>横向</label>
                </div>
            </div>
            <div class="form-group">
                <div class="col-xs-12 col-sm-3 col-md-2 control-label">切换特效:</div>
                <div class="col-sm-5">
                    <select name="transition" class="form-control" id="transition">
                        <option value="" selected="">无</option>
                        <option value="TranslateZ" <?php  if($app['transition']=='TranslateZ') { ?>selected<?php  } ?>>滑动缩放</option>
                        <option value="Cover" <?php  if($app['transition']=='Cover') { ?>selected<?php  } ?>>放大渐显</option>
                        <option value="SidePush" <?php  if($app['transition']=='SidePush') { ?>selected<?php  } ?>>侧边平推</option>
                        <option value="Rotate" <?php  if($app['transition']=='Rotate') { ?>selected<?php  } ?>>3D旋转</option>
                        <option value="Flip" <?php  if($app['transition']=='Flip') { ?>selected<?php  } ?>>翻转切换</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <div class="col-xs-12 col-sm-3 col-md-2 control-label">首页效果:</div>
                <div class="col-sm-8 col-md-6">
                  <label class="radio-inline">
                    <input name="index_effect" type="radio"  value="" <?php  if($app['index_effect']=='') { ?>checked<?php  } ?>>
                    无 </label>
                  <label class="radio-inline">
                    <input name="index_effect" type="radio"  value="yaoyy" <?php  if($app['index_effect']=='yaoyy') { ?>checked<?php  } ?>>
                    摇一摇 </label>
                  <label class="radio-inline">
                    <input name="index_effect" type="radio"  value="cayc" <?php  if($app['index_effect']=='cayc') { ?>checked<?php  } ?>>
                    擦一擦 </label>
                </div>
            </div>
            <div class="form-group indexImgGroup imageSelect"<?php  if($app['index_effect']=='') { ?> style="display: none"<?php  } ?>>
                <div class="col-xs-12 col-sm-3 col-md-2 control-label">效果封面:</div>
                <div class="col-sm-8 col-md-6">
                  <?php  echo tpl_form_field_image('index_imgurl',$app['index_imgurl']);?>
                </div>
            </div>
            <hr>
            <div class="form-group mt10">
                <div class="col-sm-offset-2 col-sm-6">
<?php  if($appid) { ?>
                    <input name="appid" type="hidden" value="<?php  echo $appid;?>">
                    <input name="op" type="hidden" value="editapp">
<?php  } else { ?>
                    <input name="op" type="hidden" value="addapp">
<?php  } ?>
                    <input type="hidden" name="token" value="<?php  echo $_W['token'];?>">
                    <input name="submit" type="submit" value="提交" class="btn btn-primary btn btn-primary btn-block" />
                </div>
            </div>
        </form>
        <script type="text/javascript">
            $('input[name=index_effect]').on('click',function(){
                if($(this).val()!=''){
                    $('.indexImgGroup').slideDown();
                }
                else {
                    $('.indexImgGroup').slideUp();
                }
            });
        </script>